package com.chartboost.sdk.impl;

import android.content.Context;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.GradientDrawable.Orientation;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

public class o extends RelativeLayout
{
  public a a;
  private boolean b;

  public o(Context paramContext)
  {
    super(paramContext);
    this.a = new a(paramContext);
    this.a.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
    addView(this.a);
    setFocusable(false);
  }

  public void a()
  {
    a(this.a);
  }

  public void a(View paramView)
  {
    AlphaAnimation localAlphaAnimation = new AlphaAnimation(0.0F, 1.0F);
    localAlphaAnimation.setDuration(510L);
    localAlphaAnimation.setFillAfter(true);
    paramView.startAnimation(localAlphaAnimation);
  }

  public void a(boolean paramBoolean)
  {
    this.b = paramBoolean;
    this.a.a();
  }

  private class a extends View
  {
    public a(Context arg2)
    {
      super();
      setFocusable(false);
    }

    public void a()
    {
      int i = -872415232;
      int j;
      if (o.a(o.this))
      {
        j = -2013265920;
        if (!o.a(o.this))
          break label100;
      }
      while (true)
      {
        GradientDrawable localGradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TL_BR, new int[] { i, j });
        localGradientDrawable.setGradientType(1);
        localGradientDrawable.setGradientRadius(Math.min(getWidth(), getHeight()) / 2.0F);
        localGradientDrawable.setGradientCenter(getWidth() / 2.0F, getHeight() / 2.0F);
        setBackgroundDrawable(localGradientDrawable);
        return;
        j = i;
        break;
        label100: i = -2013265920;
      }
    }

    protected void onSizeChanged(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
    {
      super.onSizeChanged(paramInt1, paramInt2, paramInt3, paramInt4);
      a();
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.chartboost.sdk.impl.o
 * JD-Core Version:    0.6.2
 */